package com.credit.service;

import java.util.List;

import com.credit.common.ServerResponse;
import com.credit.pojo.message;
import com.credit.pojo.messageList;
import com.credit.pojo.messageType;

public interface IMessageSerive {

	//消息分类
	ServerResponse deleteMessageType(Integer id);

	ServerResponse insertMessageType(messageType record);

	ServerResponse selectMessageType(Integer id);

	ServerResponse updateMessageType(messageType record);
	
	
	//消息发布
	ServerResponse insertMessage(message record,String user);

	ServerResponse selectMessage(message m,int pageNum,int pageSize);

	ServerResponse updateMessage(message record);
	
	
	
	//消息列表
	ServerResponse selectMessageList(messageList m,int pageNum,int pageSize);
	
	ServerResponse updateMessageList(String id);
	
	ServerResponse selectOneMessageList(Integer id);
	

}
